class Chromosome
	attr_accessor :gens
	attr_accessor :fitness_value
	attr_accessor :fitness_function

	def initialize(val,ff)
 		@gens = []
		@gens += val
		@fitness_function = ff
		@fitness_value = 0
	end

	def evaluate
		@fitness_value = fitness_function.evaluate(self)
	end

	def gens_amount
		@gens.size
	end
end
